<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>简FTP</title>
    <link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/upload.css') }}"/>
    <link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/download.css') }}"/>
</head>
<body>
<p id="title">简FTP</p>
<div id="div">
    <form action="{{ url_for('upload_success') }}" method="POST"
          enctype="multipart/form-data">
        <input type="file" name="file"/>
        <input type="submit" id="submit" value="提交上传"/>
    </form>
</div>
<div id="main">
    <h2 class="title">可供下载的文件</h2>
    <ul>
        {% for file in fl %}
{#            <li><a href="/download_file?filename={{ file }}">  {{ file }} </a></li>#}
            <li><a href="{{url_for('download_file', filename=file)}}">  {{ file }} </a></li>
            <li><a href="{{url_for('delete_file', filename=file)}}">删除</a></li>
        {% endfor %}
    </ul>
<p class="back">
    <a href="{{ url_for('home') }}">back home</a>
</p>
</div>
</body>
</html>
